package com.elcom.roaming.module.synthesis.match;

import com.elcom.roaming.common.util.match.ObjectInput;

public class MSRNMessage extends ObjectInput {
	
	public MSRNMessage(int seq, String type, String time, String msrn, String calling, String imsi, String called) {
		
		if (type.equals("REL") || type.equals("IAM")) {
			this.setKey(new MSRNKey(seq, msrn, time, MSRNKey.ISUP));
			this.setValue(new MSRNValue(calling));
		} else {
			this.setKey(new MSRNKey(seq, msrn, time, MSRNKey.PRN));
			this.setValue(new MSRNValue(imsi, called));
		}
	}
}
